<template>
    <div class="section">
        <div class="book-list">
            <div class="header">
                <div class="heading">{{heading}}</div>
                <div class="authors">   更多...</div>
            </div>
            <div class="book-item">

                <div class="book" v-for="book in books">
                    <div @click="$emit('haha', book)"class="cover"><img :src="book.img_url"><div>
                        <div class="title">{{book.title}}</div>
                        <div class="authors">{{book.authors}}</div>
                    </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</template>
<script type="text/ecmascript-6">
    import "./list.less"
    export default{
        props:['books','heading'],

        methods:{
            createevent(){
                this.$emit('haha');
            }
        },
       filters:{
           join(arge){
               return arges.join(',')
           }
       }
    }
</script>